package com.jsits.v2x.common.connection.socket;

public class ServerInfo 
{
	/*
	 * 服务端ip
	 */
	private String ip;

	/*
	 * 服务端端口号
	 */
	private int port;

	/*
	 * 客户端与服务端最后一次数据交互时间戳
	 */
	private long timeStamp;

	/*
	 * 服务端或客户端状态
	 */
	private boolean status;
	
	/*
	 * 定时检测服务端、客户端状态周期
	 */
	private int interval;
	
	/*
	 * 数据超时时间，若当前时间与记录时间戳时间间隔大于该时间，判定状态异常
	 */
	private int timeout;

	public String getIp() 
	{
		return ip;
	}

	public void setIp(String ip) 
	{
		this.ip = ip;
	}

	public int getPort() 
	{
		return port;
	}

	public void setPort(int port) 
	{
		this.port = port;
	}

	public long getTimeStamp() 
	{
		return timeStamp;
	}

	public void setTimeStamp(long timeStamp) 
	{
		this.timeStamp = timeStamp;
	}

	public boolean isStatus() {
		return status;
	}

	public void setStatus(boolean status) {
		this.status = status;
	}

	public int getInterval() 
	{
		return interval;
	}

	public void setInterval(int interval) 
	{
		this.interval = interval;
	}

	public int getTimeout() 
	{
		return timeout;
	}

	public void setTimeout(int timeout) 
	{
		this.timeout = timeout;
	}
}
